//
//  NSDate+WQCalendarLogic.h
//  iBaby365v2
//
//  Created by Kirinrin on 14-7-25.
//  Copyright (c) 2014年 suplus. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSDate (WQCalendarLogic)
- (NSUInteger)numberOfDaysInCurrentMonth;
- (NSDate *)firstDayOfCurrentMonth;
- (NSUInteger)weeklyOrdinality;
- (NSUInteger)numberOfWeeksInCurrentMonth;
- (NSDate *)dayInThePreviousMonth;
- (NSDateComponents *)YMDComponents;
- (NSDate *)lastDayOfCurrentMonth;
- (NSDate *)dayInTheFollowingMonth;

- (NSString *)dayStringInMonth;
- (NSString *)monthStringWithChinese;
- (NSString *)stringWithYYY_MM_dd;

- (BOOL)isSameMonth:(NSDate *)date;
- (BOOL)isSameDay:(NSString *)dayString;
+ (NSDate *)calendarDayWithYear:(NSUInteger)year month:(NSUInteger)month day:(NSUInteger)i;
@end
